/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.common.base;

import com.duowan.realtime.model.ServerInfo;
import com.duowan.realtime.query.ServerInfoQuery;


/**
 * 用于生成ServerInfo相关数据对象的默认值
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 * 
 */
public class ServerInfoDataFactory {
	
	public static ServerInfoQuery newServerInfoQuery() {
		ServerInfoQuery query = new ServerInfoQuery();
		query.setPage(1);
		query.setPageSize(10);
		
	  	query.setBloomfilterGroup(new String("1"));
	  	query.setIp(new String("1"));
		return query;
	}
	
	public static ServerInfo newServerInfo() {
		ServerInfo obj = new ServerInfo();
		
	  	obj.setRealtimeComputingGroup(new java.lang.String("1"));
	  	obj.setIp(new java.lang.String("1"));
		return obj;
	}
}